BadRequestException

Kind of class:public class
Package:com.smartfoxserver.redbox.exceptions
Inherits from:Error
Author:The gotoAndPlay() Team
http://www.smartfoxserver.com
http://www.gotoandplay.it
Classpath:com.smartfoxserver.redbox.exceptions.BadRequestException
File last modified:Tuesday, 19 February 2008, 09:42:22
A RedBox exception.

Summary


Constructor
  • BadRequestException (message:String)
    • Thrown when the wrong request type is passed to the AVChatManager.sendChatRequest method.

Constructor

BadRequestException

public function BadRequestException (
message:String)

Thrown when the wrong request type is passed to the AVChatManager.sendChatRequest method.
The valid request types are: AVChatManager.REQ_TYPE_SEND, AVChatManager.REQ_TYPE_RECEIVE and AVChatManager.REQ_TYPE_SEND_RECEIVE.
Parameters:
message:
the error message.
Example:
  • The following example shows how to handle the "BadRequestException" exception.
    try
    {
        avChatMan.sendChatRequest("wrongType", 3, true, true)
    }
    catch (err:BadRequestException)
    {
        trace (err.message)
    }